/*

1.手动引入
import './index.css'
import { add } from './number'

add();

console.log(window._.join(['a', 'b', 'c'], '----'))

*/

/*
2.同步引入
import _ from 'lodash'
console.log(_.join(['a', 'b', 'c'], '----'))

 */

/**/

function getCom() {
  return import(/* webpackChunkName: 'lodash' */'lodash').then(({ default: _ }) => {
    var element = document.createElement('div');
    element.innerHTML = _.join(['LEE', 'ZQY'], '-');
    return element
  })
}

getCom().then(res => {
  document.body.appendChild(res)
})